﻿#ifndef PLANE_H
#define PLANE_H
#include "bullet.h"
#include "config.h"
#include <QPixmap>



class HeroPlane
{
public:
    HeroPlane();
    void updatePostion(int x,int y);
    void shoot();
    int getPostionX() const;
    int getPostionY() const;
    QPixmap getPlane() const;
    Bullet bulletsOne[BULLET_NUM];
    Bullet bulletsTwo[BULLET_NUM];
    Bullet bulletsThree[BULLET_NUM];

    QRect getPlaneRect() const;

private:
    QPixmap plane;
    int postion_x;
    int postion_y;
    QRect planeRect;
    int bulletCount;
};

#endif // PLANE_H
